<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{font-family: "ALKATIP Basma Tom";font-weight: 900;}
        .a a:visited{color:#fff;}
        .a a{text-decoration:none;}
        .a{width: 120px;height: 50px;line-height: 50px; text-align: center;color: #fff;
            background-color: brown;border-radius: 20px;margin: 20px;font-weight: 900;}
    </style>
</head>
<body>
<div class="a"><a href="teacher">يىڭىدىن قوشۇش </a> </div>
<table border="1" cellpadding="20" cellspacing="0">
    <tr>
        <th>name</th>
        <th>age</th>
        <th>pic</th>
        <th>unwan</th>
        <th>pan</th>
        <th>created_at</th>
        <th>updated_at</th>
        <th colspan="2">مەشخۇلات</th>
    </tr>
    @foreach($uqur as $u)
        <tr>
            <td> {{$u->name}} </td>
            <td> {{$u->age}} </td>
            <td><img style="width: 60px;height: 60px;border-radius: 50%" src="{{asset('public')}}\{{$u->pic}}" alt=""> </td>
            <td> {{$u->teacher_unwan}} </td>
            <td> {{$u->teacher_subject}} </td>
            <td> {{$u->created_at}}</td>
            <td> {{$u->updated_at}}</td>
            <td><a href="teacher?id={{$u->id}}">编辑</a></td>
            <td><a href="teacher_delete?id={{$u->id}}">删除</a></td>
        </tr>
    @endforeach
</table>
</body>
</html>
